package com.example.java;

public class Classtt {
	public static void main(String[] args) {
		A bb1=new A();
		System.out.println(bb1.kkkk);//10 变量没有多态

		System.out.println("==================");
		B bb2=new A();
		System.out.println(bb2.kkkk);//9 变量没有多态
	}

}

class B extends Object {
	int kkkk=9;
	static {
		System.out.println("load B");
	}
	{
		System.out.println("n B");

	}
	protected void say(){
		
	}
	
	public B() {
		//System.out.println("create B");
	}
	public B(int ddd) {
		System.out.println("create B");
	}

//	static {
//		System.out.println("load B");
//	}
	public void ssss(){
		say();
	}
	
	 private static void stb(){
		
	}
	 
	 protected int  say1(int s){
			return 0;
		}
}

class A extends B {
	
	int kkkk=10;

	static {
		System.out.println("load A");
	}
	{
		System.out.println("n A");

	}
//	 protected float  say1(int s){
//			return 0;
//		}
	public void B (){
		say();//private
		//B.stb();
	}
	public A() {
		super(1);//显示调用调用父类构造
		System.out.println("create A");
	}
}